// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

function nestedElse() {
    var x = 10;
    var y = 30;
    var z = 0;

    if (x > 20) {
        z = 10;
    } else {
        if (y > 25 ) {
            z = 50;
        } else {
            z = 20;
        }
    }

    print(z);
}

nestedElse();
